package net.coolcollege;

import net.coolcollege.excepiton.MqSenderException;

public class Main {

    public static void main(String[] args) {
        try {
            set();
        } catch (MqSenderException e) {
            System.out.println(1);
            throw e;
        } catch (Exception e){
            System.out.println(2);
        }
    }

    public static int set() throws MqSenderException {
        int val = 1+1;
        throw  new MqSenderException("");
    }
}
